/**
 * crawler
 *
 * outlook@China software studio
 * Copyright (c) 2008-2010. All Rights Reserved.
 * http://www.outlook.com
 */

package org.outlook.crawler.service;

import org.outlook.crawler.client.pojo.Response;
import org.outlook.crawler.client.pojo.ResponseType;
import org.outlook.crawler.client.pojo.Webinfo;
import org.outlook.crawler.task.CrawlTask;

/**
 * function:
 * @author Watson email: watson.wu@hotmail.com
 * @date 2011
 */
public interface CrawlerService {

	Response crawl(CrawlTask task);

	Response crawl(String url, Long sourceId, ResponseType responseType);

	Webinfo getWebinfo(String url, Long sourceId);

	boolean isExisted(String from, String to, Long sourceId);

	Response crawl(String from, String to, Long sourceId, ResponseType responseType);

}
